package com.allwees.bs.c.common.auth;

import com.allwees.bs.c.common.auth.model.OAuthUserInfo;
import com.allwees.bs.c.module.user.entity.UserEntity;
import lombok.Data;

/**
 * AuthResponse
 * Date: 2018/8/15
 * Time: 10:19
 *
 * @author tianye
 */
@Data
public class AuthResult {
	private UserEntity userEntity;

	private OAuthUserInfo oauthUserInfo;

	private boolean newUser;

	private boolean save;

	public AuthResult(UserEntity userEntity, boolean newUser, boolean save) {
		this.userEntity = userEntity;
		this.newUser = newUser;
		this.save = save;
	}
}
